package main;

public class Main {
        public static void main(String argv[])
        {
                MotorCautare mc=new MotorCautare();
                mc.adaugaRuta("Timisoara", "Jimbolia", 20, true, true, false);
                mc.adaugaRuta("Jimbolia", "Srpska Kanja",15,true, false, false);
                mc.adaugaRuta("Srpska Kanja", "Zdreniamin", 30,true, true, false);
                mc.adaugaRuta("Zdreniamin", "Panceva", 40, false, false,true);
                
                System.out.println("Rutele ce pornesc din Timisoara:"+mc.find("Timisoara"));
                
                System.out.println("Rute Timisoara -Panceva: "+ mc.match("Timisoara", "Panceva"));
           
                mc.calculRuta("Timisoara", "Deta");
               
               
        }

}

